package ovm.gui.actions.menu.schedule;

import com.vaadin.ui.MenuBar;
import ovm.entity.ScheduleEntity;
import ovm.gui.actions.menu.AbstractMenuAction;
import ovm.gui.views.EntityListViewFactory;

import static ovm.application.MainApplication.*;

/**
 * Created by IntelliJ IDEA.
 * User: Jokser
 * Date: 08.06.12
 * Time: 8:05
 * To change this template use File | Settings | File Templates.
 */
public class ScheduleListAction extends AbstractMenuAction {
    @Override
    public void menuSelected(MenuBar.MenuItem selectedItem) {
        navigator.setMainView(EntityListViewFactory.createEntityListView(ScheduleEntity.class, true));
    }
}
